//
//  DMDoctorModel.m
//  CQKuaiYi
//
//  Created by 何典钊 on 2017/1/8.
//  Copyright © 2017年 Mr.Cannon. All rights reserved.
//

#import "DMDoctorModel.h"
#import "DMNetworkTool.h"

@implementation DMDoctorModel


- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    
}

- (void)requsetURLString:(NSString *)urlString parameter:(NSDictionary *)parameters completion:(void (^)(NSArray *))completion {
    
    [[DMNetworkTool shareDMNetwork] postURL:urlString parameter:parameters completion:^(id response) {
        if (response == nil) {
             NSLog(@"失败");
        } else {
            NSDictionary *jsons = response;
            NSArray *dictArr = jsons[@"data"];
            NSArray *newList = [NSArray yy_modelArrayWithClass:[DMDoctorModel class] json:dictArr];
            completion(newList);
        }
    }];
}

@end
